{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pprint\n",
    "import urllib.parse\n",
    "import json5\n",
    "from qwen_agent.agents import Assistant\n",
    "from qwen_agent.tools.base import BaseTool, register_tool\n",
    "\n",
    "\n",
    "# 步骤 1（可选）：添加一个名为 `my_image_gen` 的自定义工具。\n",
    "@register_tool('my_image_gen')\n",
    "class MyImageGen(BaseTool):\n",
    "    # `description` 用于告诉智能体该工具的功能。\n",
    "    description = 'AI 绘画（图像生成）服务，输入文本描述，返回基于文本信息绘制的图像 URL。'\n",
    "    # `parameters` 告诉智能体该工具有哪些输入参数。\n",
    "    parameters = [{\n",
    "        'name': 'prompt',\n",
    "        'type': 'string',\n",
    "        'description': '期望的图像内容的详细描述',\n",
    "        'required': True\n",
    "    }]\n",
    "\n",
    "    def call(self, params: str, **kwargs) -> str:\n",
    "        # `params` 是由 LLM 智能体生成的参数。\n",
    "        prompt = json5.loads(params)['prompt']\n",
    "        prompt = urllib.parse.quote(prompt)\n",
    "        return json5.dumps(\n",
    "            {'image_url': f'https://image.pollinations.ai/prompt/{prompt}'},\n",
    "            ensure_ascii=False)\n",
    "\n",
    "\n",
    "# 步骤 2：配置您所使用的 LLM。\n",
    "llm_cfg = {\n",
    "    # 使用 DashScope 提供的模型服务：\n",
    "    'model': 'qwen-max',\n",
    "    'model_server': 'dashscope',\n",
    "    # 'api_key': 'YOUR_DASHSCOPE_API_KEY',\n",
    "    # 如果这里没有设置 'api_key'，它将读取 `DASHSCOPE_API_KEY` 环境变量。\n",
    "\n",
    "    # 使用与 OpenAI API 兼容的模型服务，例如 vLLM 或 Ollama：\n",
    "    # 'model': 'Qwen2-7B-Chat',\n",
    "    # 'model_server': 'http://localhost:8000/v1',  # base_url，也称为 api_base\n",
    "    # 'api_key': 'EMPTY',\n",
    "\n",
    "    # （可选） LLM 的超参数：\n",
    "    'generate_cfg': {\n",
    "        'top_p': 0.8\n",
    "    }\n",
    "}\n",
    "\n",
    "# 步骤 3：创建一个智能体。这里我们以 `Assistant` 智能体为例，它能够使用工具并读取文件。\n",
    "system_instruction = '''你是一个乐于助人的AI助手。\n",
    "在收到用户的请求后，你应该：\n",
    "- 首先绘制一幅图像，得到图像的url，\n",
    "- 然后运行代码`request.get`以下载该图像的url，\n",
    "- 最后从给定的文档中选择一个图像操作进行图像处理。\n",
    "用 `plt.show()` 展示图像。\n",
    "你总是用中文回复用户。'''\n",
    "tools = ['my_image_gen', 'code_interpreter']  # `code_interpreter` 是框架自带的工具，用于执行代码。\n",
    "files = ['./examples/resource/doc.pdf']  # 给智能体一个 PDF 文件阅读。\n",
    "bot = Assistant(llm=llm_cfg,\n",
    "                system_message=system_instruction,\n",
    "                function_list=tools,\n",
    "                files=files)\n",
    "\n",
    "# 步骤 4：作为聊天机器人运行智能体。\n",
    "messages = []  # 这里储存聊天历史。\n",
    "while True:\n",
    "    # 例如，输入请求 \"绘制一只狗并将其旋转 90 度\"。\n",
    "    query = input('用户请求: ')\n",
    "    # 将用户请求添加到聊天历史。\n",
    "    messages.append({'role': 'user', 'content': query})\n",
    "    response = []\n",
    "    for response in bot.run(messages=messages):\n",
    "        # 流式输出。\n",
    "        print('机器人回应:')\n",
    "        pprint.pprint(response, indent=2)\n",
    "    # 将机器人的回应添加到聊天历史。\n",
    "    messages.extend(response)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple/\n",
      "Collecting qwen-agent[gui]\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/8f/bb/6dd654d24547133ab1b97c2478571096981eae9426745d52e60cd54471ed/qwen_agent-0.0.6-py3-none-any.whl (7.1 MB)\n",
      "     ---------------------------------------- 0.0/7.1 MB ? eta -:--:--\n",
      "     ---------------------------------------- 0.0/7.1 MB 991.0 kB/s eta 0:00:08\n",
      "      --------------------------------------- 0.1/7.1 MB 1.3 MB/s eta 0:00:06\n",
      "     - -------------------------------------- 0.2/7.1 MB 2.0 MB/s eta 0:00:04\n",
      "     -- ------------------------------------- 0.4/7.1 MB 2.5 MB/s eta 0:00:03\n",
      "     --- ------------------------------------ 0.5/7.1 MB 3.0 MB/s eta 0:00:03\n",
      "     ----- ---------------------------------- 0.9/7.1 MB 4.2 MB/s eta 0:00:02\n",
      "     ------ --------------------------------- 1.1/7.1 MB 4.6 MB/s eta 0:00:02\n",
      "     ------- -------------------------------- 1.4/7.1 MB 4.9 MB/s eta 0:00:02\n",
      "     ---------- ----------------------------- 1.8/7.1 MB 5.7 MB/s eta 0:00:01\n",
      "     ---------- ----------------------------- 1.8/7.1 MB 5.1 MB/s eta 0:00:02\n",
      "     ---------- ----------------------------- 1.8/7.1 MB 5.1 MB/s eta 0:00:02\n",
      "     ---------------- ----------------------- 2.9/7.1 MB 6.5 MB/s eta 0:00:01\n",
      "     -------------------- ------------------- 3.7/7.1 MB 7.8 MB/s eta 0:00:01\n",
      "     ----------------------- ---------------- 4.1/7.1 MB 8.2 MB/s eta 0:00:01\n",
      "     ------------------------- -------------- 4.5/7.1 MB 8.4 MB/s eta 0:00:01\n",
      "     --------------------------- ------------ 4.9/7.1 MB 8.5 MB/s eta 0:00:01\n",
      "     ----------------------------- ---------- 5.2/7.1 MB 8.7 MB/s eta 0:00:01\n",
      "     ------------------------------ --------- 5.3/7.1 MB 8.3 MB/s eta 0:00:01\n",
      "     ------------------------------- -------- 5.5/7.1 MB 8.4 MB/s eta 0:00:01\n",
      "     --------------------------------- ------ 5.9/7.1 MB 8.4 MB/s eta 0:00:01\n",
      "     ----------------------------------- ---- 6.2/7.1 MB 8.3 MB/s eta 0:00:01\n",
      "     ------------------------------------- -- 6.6/7.1 MB 8.3 MB/s eta 0:00:01\n",
      "     ---------------------------------------  7.0/7.1 MB 8.5 MB/s eta 0:00:01\n",
      "     ---------------------------------------  7.0/7.1 MB 8.5 MB/s eta 0:00:01\n",
      "     ---------------------------------------  7.0/7.1 MB 8.5 MB/s eta 0:00:01\n",
      "     ---------------------------------------- 7.1/7.1 MB 7.8 MB/s eta 0:00:00\n",
      "Requirement already satisfied: beautifulsoup4 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from qwen-agent[gui]) (4.12.3)\n",
      "Collecting dashscope>=1.11.0 (from qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/f1/0d/b6ff94f573cd3a3adb556cad4bb499057f294cc7e9bd1d2fbe53667d4f39/dashscope-1.20.3-py3-none-any.whl (1.3 MB)\n",
      "     ---------------------------------------- 0.0/1.3 MB ? eta -:--:--\n",
      "     -------------- ------------------------- 0.4/1.3 MB 13.9 MB/s eta 0:00:01\n",
      "     ------------------- -------------------- 0.6/1.3 MB 12.9 MB/s eta 0:00:01\n",
      "     -------------------------- ------------- 0.8/1.3 MB 8.8 MB/s eta 0:00:01\n",
      "     ---------------------------------------- 1.3/1.3 MB 11.3 MB/s eta 0:00:00\n",
      "Collecting eval-type-backport (from qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/ac/ac/aa3d8e0acbcd71140420bc752d7c9779cf3a2a3bb1d7ef30944e38b2cd39/eval_type_backport-0.2.0-py3-none-any.whl (5.9 kB)\n",
      "Collecting html2text (from qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/1a/43/e1d53588561e533212117750ee79ad0ba02a41f52a08c1df3396bd466c05/html2text-2024.2.26.tar.gz (56 kB)\n",
      "     ---------------------------------------- 0.0/56.5 kB ? eta -:--:--\n",
      "     ---------------------------------------- 56.5/56.5 kB ? eta 0:00:00\n",
      "  Preparing metadata (setup.py): started\n",
      "  Preparing metadata (setup.py): finished with status 'done'\n",
      "Collecting jieba (from qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/c6/cb/18eeb235f833b726522d7ebed54f2278ce28ba9438e3135ab0278d9792a2/jieba-0.42.1.tar.gz (19.2 MB)\n",
      "     ---------------------------------------- 0.0/19.2 MB ? eta -:--:--\n",
      "      --------------------------------------- 0.4/19.2 MB 13.9 MB/s eta 0:00:02\n",
      "     - -------------------------------------- 0.6/19.2 MB 12.9 MB/s eta 0:00:02\n",
      "     - -------------------------------------- 0.8/19.2 MB 7.7 MB/s eta 0:00:03\n",
      "     --- ------------------------------------ 1.7/19.2 MB 11.7 MB/s eta 0:00:02\n",
      "     ---- ----------------------------------- 2.1/19.2 MB 12.0 MB/s eta 0:00:02\n",
      "     ----- ---------------------------------- 2.5/19.2 MB 11.4 MB/s eta 0:00:02\n",
      "     ------ --------------------------------- 2.9/19.2 MB 11.7 MB/s eta 0:00:02\n",
      "     ------ --------------------------------- 3.3/19.2 MB 11.9 MB/s eta 0:00:02\n",
      "     ------- -------------------------------- 3.7/19.2 MB 11.8 MB/s eta 0:00:02\n",
      "     ------- -------------------------------- 3.7/19.2 MB 11.8 MB/s eta 0:00:02\n",
      "     --------- ------------------------------ 4.6/19.2 MB 11.7 MB/s eta 0:00:02\n",
      "     ---------- ----------------------------- 5.0/19.2 MB 11.8 MB/s eta 0:00:02\n",
      "     ----------- ---------------------------- 5.4/19.2 MB 11.5 MB/s eta 0:00:02\n",
      "     ------------ --------------------------- 5.8/19.2 MB 11.7 MB/s eta 0:00:02\n",
      "     ------------- -------------------------- 6.3/19.2 MB 11.8 MB/s eta 0:00:02\n",
      "     ------------- -------------------------- 6.7/19.2 MB 11.5 MB/s eta 0:00:02\n",
      "     -------------- ------------------------- 6.8/19.2 MB 11.7 MB/s eta 0:00:02\n",
      "     -------------- ------------------------- 7.1/19.2 MB 11.0 MB/s eta 0:00:02\n",
      "     ---------------- ----------------------- 7.9/19.2 MB 11.4 MB/s eta 0:00:01\n",
      "     ----------------- ---------------------- 8.3/19.2 MB 11.5 MB/s eta 0:00:01\n",
      "     ------------------ --------------------- 8.7/19.2 MB 11.6 MB/s eta 0:00:01\n",
      "     ------------------- -------------------- 9.1/19.2 MB 11.7 MB/s eta 0:00:01\n",
      "     ------------------- -------------------- 9.6/19.2 MB 11.5 MB/s eta 0:00:01\n",
      "     -------------------- ------------------- 9.8/19.2 MB 11.6 MB/s eta 0:00:01\n",
      "     -------------------- ------------------- 9.9/19.2 MB 11.1 MB/s eta 0:00:01\n",
      "     --------------------- ----------------- 10.8/19.2 MB 11.5 MB/s eta 0:00:01\n",
      "     ---------------------- ---------------- 11.2/19.2 MB 11.9 MB/s eta 0:00:01\n",
      "     ----------------------- --------------- 11.6/19.2 MB 11.7 MB/s eta 0:00:01\n",
      "     ------------------------ -------------- 12.1/19.2 MB 11.5 MB/s eta 0:00:01\n",
      "     ------------------------- ------------- 12.5/19.2 MB 11.5 MB/s eta 0:00:01\n",
      "     -------------------------- ------------ 12.9/19.2 MB 11.7 MB/s eta 0:00:01\n",
      "     -------------------------- ------------ 12.9/19.2 MB 11.7 MB/s eta 0:00:01\n",
      "     --------------------------- ----------- 13.7/19.2 MB 11.5 MB/s eta 0:00:01\n",
      "     ---------------------------- ---------- 14.2/19.2 MB 12.1 MB/s eta 0:00:01\n",
      "     ----------------------------- --------- 14.6/19.2 MB 11.7 MB/s eta 0:00:01\n",
      "     ------------------------------ -------- 15.0/19.2 MB 11.5 MB/s eta 0:00:01\n",
      "     ------------------------------- ------- 15.4/19.2 MB 11.7 MB/s eta 0:00:01\n",
      "     -------------------------------- ------ 15.8/19.2 MB 11.5 MB/s eta 0:00:01\n",
      "     -------------------------------- ------ 16.0/19.2 MB 11.5 MB/s eta 0:00:01\n",
      "     --------------------------------- ----- 16.3/19.2 MB 11.1 MB/s eta 0:00:01\n",
      "     ---------------------------------- ---- 17.1/19.2 MB 11.9 MB/s eta 0:00:01\n",
      "     ----------------------------------- --- 17.5/19.2 MB 11.9 MB/s eta 0:00:01\n",
      "     ------------------------------------ -- 17.9/19.2 MB 11.7 MB/s eta 0:00:01\n",
      "     ------------------------------------- - 18.3/19.2 MB 11.5 MB/s eta 0:00:01\n",
      "     --------------------------------------  18.8/19.2 MB 11.5 MB/s eta 0:00:01\n",
      "     --------------------------------------  19.0/19.2 MB 11.5 MB/s eta 0:00:01\n",
      "     --------------------------------------  19.1/19.2 MB 11.1 MB/s eta 0:00:01\n",
      "     --------------------------------------  19.2/19.2 MB 10.9 MB/s eta 0:00:01\n",
      "     --------------------------------------- 19.2/19.2 MB 10.7 MB/s eta 0:00:00\n",
      "  Preparing metadata (setup.py): started\n",
      "  Preparing metadata (setup.py): finished with status 'done'\n",
      "Collecting json5 (from qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/8a/3c/4f8791ee53ab9eeb0b022205aa79387119a74cc9429582ce04098e6fc540/json5-0.9.25-py3-none-any.whl (30 kB)\n",
      "Collecting jsonlines (from qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/f8/62/d9ba6323b9202dd2fe166beab8a86d29465c41a0288cbe229fac60c1ab8d/jsonlines-4.0.0-py3-none-any.whl (8.7 kB)\n",
      "Collecting openai (from qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/43/18/8425b246cefad230b2574018bba0c039d70750b0a270eba1c9576a1fcab2/openai-1.37.1-py3-none-any.whl (337 kB)\n",
      "     ---------------------------------------- 0.0/337.0 kB ? eta -:--:--\n",
      "     ------------------------------------- 337.0/337.0 kB 10.5 MB/s eta 0:00:00\n",
      "Collecting pdfminer.six (from qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/67/7d/44d6b90e5a293d3a975cefdc4e12a932ebba814995b2a07e37e599dd27c6/pdfminer.six-20240706-py3-none-any.whl (5.6 MB)\n",
      "     ---------------------------------------- 0.0/5.6 MB ? eta -:--:--\n",
      "     --- ------------------------------------ 0.4/5.6 MB 9.2 MB/s eta 0:00:01\n",
      "     ---- ----------------------------------- 0.6/5.6 MB 10.1 MB/s eta 0:00:01\n",
      "     ----- ---------------------------------- 0.8/5.6 MB 7.3 MB/s eta 0:00:01\n",
      "     ----------- ---------------------------- 1.7/5.6 MB 11.8 MB/s eta 0:00:01\n",
      "     -------------- ------------------------- 2.1/5.6 MB 11.1 MB/s eta 0:00:01\n",
      "     ----------------- ---------------------- 2.5/5.6 MB 11.4 MB/s eta 0:00:01\n",
      "     -------------------- ------------------- 2.9/5.6 MB 11.7 MB/s eta 0:00:01\n",
      "     ----------------------- ---------------- 3.3/5.6 MB 11.2 MB/s eta 0:00:01\n",
      "     -------------------------- ------------- 3.7/5.6 MB 11.3 MB/s eta 0:00:01\n",
      "     -------------------------- ------------- 3.7/5.6 MB 11.3 MB/s eta 0:00:01\n",
      "     -------------------------------- ------- 4.5/5.6 MB 11.6 MB/s eta 0:00:01\n",
      "     ----------------------------------- ---- 5.0/5.6 MB 11.3 MB/s eta 0:00:01\n",
      "     -------------------------------------- - 5.3/5.6 MB 11.4 MB/s eta 0:00:01\n",
      "     ---------------------------------------  5.6/5.6 MB 11.2 MB/s eta 0:00:01\n",
      "     ---------------------------------------- 5.6/5.6 MB 10.9 MB/s eta 0:00:00\n",
      "Collecting pdfplumber (from qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/b1/15/93ca546606d3687134299ad0f226040d7c8712c7cc8a300cf2e400632957/pdfplumber-0.11.2-py3-none-any.whl (58 kB)\n",
      "     ---------------------------------------- 0.0/58.0 kB ? eta -:--:--\n",
      "     ---------------------------------------- 58.0/58.0 kB ? eta 0:00:00\n",
      "Requirement already satisfied: pydantic>=2.3.0 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from qwen-agent[gui]) (2.8.2)\n",
      "Requirement already satisfied: python-docx in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from qwen-agent[gui]) (1.1.2)\n",
      "Collecting python-pptx (from qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/72/49/6eee83072983473e9905ffddd5c2032b9a0ca4616425560d6d582287b467/python_pptx-0.6.23-py3-none-any.whl (471 kB)\n",
      "     ---------------------------------------- 0.0/471.6 kB ? eta -:--:--\n",
      "     ---------------------------------- -- 440.3/471.6 kB 13.9 MB/s eta 0:00:01\n",
      "     -------------------------------------- 471.6/471.6 kB 9.8 MB/s eta 0:00:00\n",
      "Collecting rank-bm25 (from qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/2a/21/f691fb2613100a62b3fa91e9988c991e9ca5b89ea31c0d3152a3210344f9/rank_bm25-0.2.2-py3-none-any.whl (8.6 kB)\n",
      "Requirement already satisfied: requests in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from qwen-agent[gui]) (2.32.3)\n",
      "Collecting snowballstemmer (from qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/ed/dc/c02e01294f7265e63a7315fe086dd1df7dacb9f840a804da846b96d01b96/snowballstemmer-2.2.0-py2.py3-none-any.whl (93 kB)\n",
      "     ---------------------------------------- 0.0/93.0 kB ? eta -:--:--\n",
      "     ---------------------------------------- 93.0/93.0 kB 5.2 MB/s eta 0:00:00\n",
      "Collecting tiktoken (from qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/ec/1f/a5d72755118e9e1b62cdf3ef9138eb83d49088f3cb37a9540025c81c0e75/tiktoken-0.7.0-cp310-cp310-win_amd64.whl (798 kB)\n",
      "     ---------------------------------------- 0.0/798.9 kB ? eta -:--:--\n",
      "     -------------------- ---------------- 440.3/798.9 kB 13.9 MB/s eta 0:00:01\n",
      "     ----------------------------- ------- 634.9/798.9 kB 10.1 MB/s eta 0:00:01\n",
      "     --------------------------------- ---- 696.3/798.9 kB 7.4 MB/s eta 0:00:01\n",
      "     -------------------------------------- 798.9/798.9 kB 6.3 MB/s eta 0:00:00\n",
      "Requirement already satisfied: anyio>=3.7.1 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from qwen-agent[gui]) (4.4.0)\n",
      "Collecting fastapi>=0.103.1 (from qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/a4/d4/eb78f7c2648a3585095623f207d7e4b85a1be30347e01e0fdcd1d7d167a9/fastapi-0.111.1-py3-none-any.whl (92 kB)\n",
      "     ---------------------------------------- 0.0/92.2 kB ? eta -:--:--\n",
      "     ---------------------------------------- 92.2/92.2 kB ? eta 0:00:00\n",
      "Collecting jupyter>=1.0.0 (from qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/83/df/0f5dd132200728a86190397e1ea87cd76244e42d39ec5e88efd25b2abd7e/jupyter-1.0.0-py2.py3-none-any.whl (2.7 kB)\n",
      "Requirement already satisfied: matplotlib in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from qwen-agent[gui]) (3.9.1)\n",
      "Requirement already satisfied: numpy in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from qwen-agent[gui]) (1.26.4)\n",
      "Collecting pandas (from qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/69/a6/81d5dc9a612cf0c1810c2ebc4f2afddb900382276522b18d128213faeae3/pandas-2.2.2-cp310-cp310-win_amd64.whl (11.6 MB)\n",
      "Requirement already satisfied: pillow in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from qwen-agent[gui]) (10.4.0)\n",
      "Collecting seaborn (from qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/83/11/00d3c3dfc25ad54e731d91449895a79e4bf2384dc3ac01809010ba88f6d5/seaborn-0.13.2-py3-none-any.whl (294 kB)\n",
      "     ---------------------------------------- 0.0/294.9 kB ? eta -:--:--\n",
      "     ---------------------------------------- 294.9/294.9 kB ? eta 0:00:00\n",
      "Collecting sympy (from qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/b2/fe/81695a1aa331a842b582453b605175f419fe8540355886031328089d840a/sympy-1.13.1-py3-none-any.whl (6.2 MB)\n",
      "     ---------------------------------------- 0.0/6.2 MB ? eta -:--:--\n",
      "     -- ------------------------------------- 0.5/6.2 MB 14.2 MB/s eta 0:00:01\n",
      "     --- ------------------------------------ 0.6/6.2 MB 12.9 MB/s eta 0:00:01\n",
      "     ----- ---------------------------------- 0.8/6.2 MB 8.8 MB/s eta 0:00:01\n",
      "     ---------- ----------------------------- 1.7/6.2 MB 11.9 MB/s eta 0:00:01\n",
      "     ------------- -------------------------- 2.1/6.2 MB 12.1 MB/s eta 0:00:01\n",
      "     ---------------- ----------------------- 2.5/6.2 MB 12.4 MB/s eta 0:00:01\n",
      "     ------------------ --------------------- 2.9/6.2 MB 11.7 MB/s eta 0:00:01\n",
      "     --------------------- ------------------ 3.4/6.2 MB 12.0 MB/s eta 0:00:01\n",
      "     ------------------------ --------------- 3.7/6.2 MB 11.9 MB/s eta 0:00:01\n",
      "     ------------------------ --------------- 3.7/6.2 MB 11.9 MB/s eta 0:00:01\n",
      "     ----------------------------- ---------- 4.6/6.2 MB 11.7 MB/s eta 0:00:01\n",
      "     -------------------------------- ------- 5.0/6.2 MB 11.8 MB/s eta 0:00:01\n",
      "     ----------------------------------- ---- 5.4/6.2 MB 11.9 MB/s eta 0:00:01\n",
      "     ------------------------------------- -- 5.8/6.2 MB 11.7 MB/s eta 0:00:01\n",
      "     ------------------------------------- -- 5.8/6.2 MB 11.7 MB/s eta 0:00:01\n",
      "     ------------------------------------- -- 5.8/6.2 MB 11.7 MB/s eta 0:00:01\n",
      "     ------------------------------------- -- 5.8/6.2 MB 11.7 MB/s eta 0:00:01\n",
      "     ---------------------------------------  6.2/6.2 MB 10.1 MB/s eta 0:00:01\n",
      "     ---------------------------------------  6.2/6.2 MB 10.1 MB/s eta 0:00:01\n",
      "     ---------------------------------------  6.2/6.2 MB 10.1 MB/s eta 0:00:01\n",
      "     ---------------------------------------  6.2/6.2 MB 10.1 MB/s eta 0:00:01\n",
      "     ---------------------------------------  6.2/6.2 MB 10.1 MB/s eta 0:00:01\n",
      "     ---------------------------------------  6.2/6.2 MB 10.1 MB/s eta 0:00:01\n",
      "     ---------------------------------------- 6.2/6.2 MB 7.5 MB/s eta 0:00:00\n",
      "Collecting uvicorn>=0.23.2 (from qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/63/84/2a26b4eac1cf0c6b5b176dd4346cc4912af5e1b0efc150b865e28636ac34/uvicorn-0.30.3-py3-none-any.whl (62 kB)\n",
      "     ---------------------------------------- 0.0/62.8 kB ? eta -:--:--\n",
      "     ---------------------------------------- 62.8/62.8 kB ? eta 0:00:00\n",
      "Collecting gradio==4.21.0 (from qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/68/6c/28d4a841651b32b2e8b4bdc55cfe96785e5cce63ce2c07d039df2c0abfd3/gradio-4.21.0-py3-none-any.whl (17.0 MB)\n",
      "     ---------------------------------------- 0.0/17.0 MB ? eta -:--:--\n",
      "     - -------------------------------------- 0.4/17.0 MB 13.9 MB/s eta 0:00:02\n",
      "     - -------------------------------------- 0.6/17.0 MB 12.6 MB/s eta 0:00:02\n",
      "     - -------------------------------------- 0.8/17.0 MB 8.4 MB/s eta 0:00:02\n",
      "     --- ------------------------------------ 1.6/17.0 MB 11.6 MB/s eta 0:00:02\n",
      "     ---- ----------------------------------- 2.1/17.0 MB 12.0 MB/s eta 0:00:02\n",
      "     ----- ---------------------------------- 2.5/17.0 MB 12.3 MB/s eta 0:00:02\n",
      "     ------ --------------------------------- 2.9/17.0 MB 12.4 MB/s eta 0:00:02\n",
      "     ------- -------------------------------- 3.3/17.0 MB 11.8 MB/s eta 0:00:02\n",
      "     -------- ------------------------------- 3.7/17.0 MB 11.9 MB/s eta 0:00:02\n",
      "     -------- ------------------------------- 3.7/17.0 MB 11.9 MB/s eta 0:00:02\n",
      "     ---------- ----------------------------- 4.6/17.0 MB 11.7 MB/s eta 0:00:02\n",
      "     ----------- ---------------------------- 5.0/17.0 MB 11.8 MB/s eta 0:00:02\n",
      "     ------------ --------------------------- 5.4/17.0 MB 11.9 MB/s eta 0:00:01\n",
      "     ------------- -------------------------- 5.8/17.0 MB 11.6 MB/s eta 0:00:01\n",
      "     -------------- ------------------------- 6.2/17.0 MB 11.7 MB/s eta 0:00:01\n",
      "     --------------- ------------------------ 6.6/17.0 MB 11.8 MB/s eta 0:00:01\n",
      "     --------------- ------------------------ 6.8/17.0 MB 11.7 MB/s eta 0:00:01\n",
      "     ---------------- ----------------------- 7.1/17.0 MB 11.0 MB/s eta 0:00:01\n",
      "     ------------------ --------------------- 7.9/17.0 MB 11.7 MB/s eta 0:00:01\n",
      "     ------------------- -------------------- 8.3/17.0 MB 11.8 MB/s eta 0:00:01\n",
      "     -------------------- ------------------- 8.7/17.0 MB 11.6 MB/s eta 0:00:01\n",
      "     --------------------- ------------------ 9.1/17.0 MB 11.7 MB/s eta 0:00:01\n",
      "     ---------------------- ----------------- 9.5/17.0 MB 11.7 MB/s eta 0:00:01\n",
      "     ----------------------- ---------------- 9.9/17.0 MB 11.7 MB/s eta 0:00:01\n",
      "     ----------------------- ---------------- 9.9/17.0 MB 11.7 MB/s eta 0:00:01\n",
      "     ------------------------ -------------- 10.8/17.0 MB 11.5 MB/s eta 0:00:01\n",
      "     ------------------------- ------------- 11.2/17.0 MB 11.9 MB/s eta 0:00:01\n",
      "     -------------------------- ------------ 11.6/17.0 MB 11.5 MB/s eta 0:00:01\n",
      "     --------------------------- ----------- 12.0/17.0 MB 11.5 MB/s eta 0:00:01\n",
      "     ---------------------------- ---------- 12.5/17.0 MB 11.5 MB/s eta 0:00:01\n",
      "     ----------------------------- --------- 12.9/17.0 MB 11.5 MB/s eta 0:00:01\n",
      "     ----------------------------- --------- 13.0/17.0 MB 11.5 MB/s eta 0:00:01\n",
      "     ------------------------------ -------- 13.3/17.0 MB 11.1 MB/s eta 0:00:01\n",
      "     ------------------------------ -------- 13.3/17.0 MB 11.1 MB/s eta 0:00:01\n",
      "     ------------------------------ -------- 13.3/17.0 MB 10.4 MB/s eta 0:00:01\n",
      "     ------------------------------ -------- 13.3/17.0 MB 10.1 MB/s eta 0:00:01\n",
      "     ------------------------------ -------- 13.3/17.0 MB 10.1 MB/s eta 0:00:01\n",
      "     -------------------------------- ------- 13.7/17.0 MB 9.6 MB/s eta 0:00:01\n",
      "     -------------------------------- ------- 13.7/17.0 MB 9.6 MB/s eta 0:00:01\n",
      "     -------------------------------- ------- 13.9/17.0 MB 9.1 MB/s eta 0:00:01\n",
      "     --------------------------------- ------ 14.4/17.0 MB 9.4 MB/s eta 0:00:01\n",
      "     ---------------------------------- ----- 14.8/17.0 MB 9.2 MB/s eta 0:00:01\n",
      "     ----------------------------------- ---- 15.2/17.0 MB 9.1 MB/s eta 0:00:01\n",
      "     ------------------------------------ --- 15.5/17.0 MB 9.2 MB/s eta 0:00:01\n",
      "     ------------------------------------ --- 15.5/17.0 MB 8.8 MB/s eta 0:00:01\n",
      "     -------------------------------------- - 16.4/17.0 MB 9.2 MB/s eta 0:00:01\n",
      "     ---------------------------------------  16.8/17.0 MB 9.1 MB/s eta 0:00:01\n",
      "     ---------------------------------------  17.0/17.0 MB 9.1 MB/s eta 0:00:01\n",
      "     ---------------------------------------- 17.0/17.0 MB 9.3 MB/s eta 0:00:00\n",
      "Collecting modelscope-studio>=0.4.0 (from qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/1b/c1/b4a9cce486a7971cfc5a3f5692271b5b9e81ae3c319ddcb436f0161631b3/modelscope_studio-0.4.0-py3-none-any.whl (11.0 MB)\n",
      "     ---------------------------------------- 0.0/11.0 MB ? eta -:--:--\n",
      "     - -------------------------------------- 0.4/11.0 MB 13.9 MB/s eta 0:00:01\n",
      "     -- ------------------------------------- 0.6/11.0 MB 13.3 MB/s eta 0:00:01\n",
      "     -- ------------------------------------- 0.8/11.0 MB 7.3 MB/s eta 0:00:02\n",
      "     ------ --------------------------------- 1.7/11.0 MB 11.8 MB/s eta 0:00:01\n",
      "     ------- -------------------------------- 2.1/11.0 MB 11.1 MB/s eta 0:00:01\n",
      "     --------- ------------------------------ 2.5/11.0 MB 11.5 MB/s eta 0:00:01\n",
      "     ---------- ----------------------------- 2.9/11.0 MB 11.7 MB/s eta 0:00:01\n",
      "     ----------- ---------------------------- 3.1/11.0 MB 11.8 MB/s eta 0:00:01\n",
      "     ----------- ---------------------------- 3.1/11.0 MB 11.8 MB/s eta 0:00:01\n",
      "     ----------- ---------------------------- 3.1/11.0 MB 11.8 MB/s eta 0:00:01\n",
      "     ----------- ---------------------------- 3.1/11.0 MB 11.8 MB/s eta 0:00:01\n",
      "     ----------- ---------------------------- 3.1/11.0 MB 11.8 MB/s eta 0:00:01\n",
      "     ----------- ---------------------------- 3.1/11.0 MB 11.8 MB/s eta 0:00:01\n",
      "     --------------------- ------------------ 5.8/11.0 MB 11.6 MB/s eta 0:00:01\n",
      "     ---------------------- ----------------- 6.3/11.0 MB 11.8 MB/s eta 0:00:01\n",
      "     ------------------------ --------------- 6.7/11.0 MB 11.5 MB/s eta 0:00:01\n",
      "     ------------------------ --------------- 6.8/11.0 MB 11.7 MB/s eta 0:00:01\n",
      "     ------------------------- -------------- 7.1/11.0 MB 11.0 MB/s eta 0:00:01\n",
      "     ---------------------------- ----------- 7.9/11.0 MB 11.5 MB/s eta 0:00:01\n",
      "     ------------------------------ --------- 8.3/11.0 MB 11.6 MB/s eta 0:00:01\n",
      "     ------------------------------- -------- 8.8/11.0 MB 11.7 MB/s eta 0:00:01\n",
      "     --------------------------------- ------ 9.2/11.0 MB 11.5 MB/s eta 0:00:01\n",
      "     ---------------------------------- ----- 9.6/11.0 MB 11.6 MB/s eta 0:00:01\n",
      "     ----------------------------------- ---- 9.9/11.0 MB 11.5 MB/s eta 0:00:01\n",
      "     ----------------------------------- --- 10.0/11.0 MB 11.0 MB/s eta 0:00:01\n",
      "     --------------------------------------  10.8/11.0 MB 11.5 MB/s eta 0:00:01\n",
      "     --------------------------------------- 11.0/11.0 MB 11.9 MB/s eta 0:00:00\n",
      "Collecting aiofiles<24.0,>=22.0 (from gradio==4.21.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/c5/19/5af6804c4cc0fed83f47bff6e413a98a36618e7d40185cd36e69737f3b0e/aiofiles-23.2.1-py3-none-any.whl (15 kB)\n",
      "Collecting altair<6.0,>=4.2.0 (from gradio==4.21.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/46/30/2118537233fa72c1d91a81f5908a7e843a6601ccc68b76838ebc4951505f/altair-5.3.0-py3-none-any.whl (857 kB)\n",
      "Collecting ffmpy (from gradio==4.21.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/ff/1e/db99aa669eee301966bc6c997d60a0240f9cecae63f044b2e5a5310e4bf7/ffmpy-0.4.0-py3-none-any.whl (5.8 kB)\n",
      "Collecting gradio-client==0.12.0 (from gradio==4.21.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/cd/4d/5b430cc0fbb19b20368e9cd791700270c9551dab7234e6501b1587c414de/gradio_client-0.12.0-py3-none-any.whl (310 kB)\n",
      "     ---------------------------------------- 0.0/310.7 kB ? eta -:--:--\n",
      "     -------------------------------------- 310.7/310.7 kB 9.7 MB/s eta 0:00:00\n",
      "Requirement already satisfied: httpx>=0.24.1 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from gradio==4.21.0->qwen-agent[gui]) (0.27.0)\n",
      "Collecting huggingface-hub>=0.19.3 (from gradio==4.21.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/0f/36/83c0f0c7a5ec75738241c4c0c066097e4f74729716961db6a2905395015c/huggingface_hub-0.24.3-py3-none-any.whl (417 kB)\n",
      "     ---------------------------------------- 0.0/417.3 kB ? eta -:--:--\n",
      "     ------------------------------------  409.6/417.3 kB 25.0 MB/s eta 0:00:01\n",
      "     ------------------------------------- 417.3/417.3 kB 13.1 MB/s eta 0:00:00\n",
      "Collecting importlib-resources<7.0,>=1.3 (from gradio==4.21.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/75/06/4df55e1b7b112d183f65db9503bff189e97179b256e1ea450a3c365241e0/importlib_resources-6.4.0-py3-none-any.whl (38 kB)\n",
      "Collecting jinja2<4.0 (from gradio==4.21.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/31/80/3a54838c3fb461f6fec263ebf3a3a41771bd05190238de3486aae8540c36/jinja2-3.1.4-py3-none-any.whl (133 kB)\n",
      "Collecting markupsafe~=2.0 (from gradio==4.21.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/69/48/acbf292615c65f0604a0c6fc402ce6d8c991276e16c80c46a8f758fbd30c/MarkupSafe-2.1.5-cp310-cp310-win_amd64.whl (17 kB)\n",
      "Collecting orjson~=3.0 (from gradio==4.21.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/e1/b4/b7b9647f101679abd88a5778c2f4459a5017fd87dd5af4861ffc33cd4ec2/orjson-3.10.6-cp310-none-win_amd64.whl (136 kB)\n",
      "     ---------------------------------------- 0.0/136.4 kB ? eta -:--:--\n",
      "     -------------------------------------- 136.4/136.4 kB 7.9 MB/s eta 0:00:00\n",
      "Requirement already satisfied: packaging in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from gradio==4.21.0->qwen-agent[gui]) (24.1)\n",
      "Collecting pydub (from gradio==4.21.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a6/53/d78dc063216e62fc55f6b2eebb447f6a4b0a59f55c8406376f76bf959b08/pydub-0.25.1-py2.py3-none-any.whl (32 kB)\n",
      "Collecting python-multipart>=0.0.9 (from gradio==4.21.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/3d/47/444768600d9e0ebc82f8e347775d24aef8f6348cf00e9fa0e81910814e6d/python_multipart-0.0.9-py3-none-any.whl (22 kB)\n",
      "Requirement already satisfied: pyyaml<7.0,>=5.0 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from gradio==4.21.0->qwen-agent[gui]) (6.0.1)\n",
      "Collecting ruff>=0.2.2 (from gradio==4.21.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/c9/5b/13288039ea8190c121b70f1a11be2c4830cb3ebb57dc91d91fc5d3c65fc6/ruff-0.5.5-py3-none-win_amd64.whl (8.6 MB)\n",
      "     ---------------------------------------- 0.0/8.6 MB ? eta -:--:--\n",
      "     -- ------------------------------------- 0.4/8.6 MB 13.4 MB/s eta 0:00:01\n",
      "     --- ------------------------------------ 0.9/8.6 MB 10.8 MB/s eta 0:00:01\n",
      "     ---- ----------------------------------- 1.0/8.6 MB 12.7 MB/s eta 0:00:01\n",
      "     ----- ---------------------------------- 1.2/8.6 MB 8.6 MB/s eta 0:00:01\n",
      "     --------- ------------------------------ 2.1/8.6 MB 11.0 MB/s eta 0:00:01\n",
      "     ----------- ---------------------------- 2.5/8.6 MB 11.4 MB/s eta 0:00:01\n",
      "     ------------- -------------------------- 2.9/8.6 MB 11.6 MB/s eta 0:00:01\n",
      "     --------------- ------------------------ 3.3/8.6 MB 11.7 MB/s eta 0:00:01\n",
      "     ----------------- ---------------------- 3.7/8.6 MB 11.4 MB/s eta 0:00:01\n",
      "     ------------------ --------------------- 4.1/8.6 MB 11.8 MB/s eta 0:00:01\n",
      "     ------------------ --------------------- 4.1/8.6 MB 11.8 MB/s eta 0:00:01\n",
      "     ----------------------- ---------------- 5.0/8.6 MB 11.3 MB/s eta 0:00:01\n",
      "     ------------------------- -------------- 5.4/8.6 MB 11.5 MB/s eta 0:00:01\n",
      "     -------------------------- ------------- 5.8/8.6 MB 11.6 MB/s eta 0:00:01\n",
      "     ---------------------------- ----------- 6.2/8.6 MB 11.3 MB/s eta 0:00:01\n",
      "     ------------------------------ --------- 6.6/8.6 MB 11.5 MB/s eta 0:00:01\n",
      "     -------------------------------- ------- 7.1/8.6 MB 11.5 MB/s eta 0:00:01\n",
      "     --------------------------------- ------ 7.2/8.6 MB 11.4 MB/s eta 0:00:01\n",
      "     ---------------------------------- ----- 7.5/8.6 MB 10.8 MB/s eta 0:00:01\n",
      "     -------------------------------------- - 8.3/8.6 MB 11.5 MB/s eta 0:00:01\n",
      "     ---------------------------------------  8.6/8.6 MB 11.5 MB/s eta 0:00:01\n",
      "     ---------------------------------------- 8.6/8.6 MB 11.2 MB/s eta 0:00:00\n",
      "Collecting semantic-version~=2.0 (from gradio==4.21.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/6a/23/8146aad7d88f4fcb3a6218f41a60f6c2d4e3a72de72da1825dc7c8f7877c/semantic_version-2.10.0-py2.py3-none-any.whl (15 kB)\n",
      "Collecting tomlkit==0.12.0 (from gradio==4.21.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/68/4f/12207897848a653d03ebbf6775a29d949408ded5f99b2d87198bc5c93508/tomlkit-0.12.0-py3-none-any.whl (37 kB)\n",
      "Collecting typer<1.0,>=0.9 (from typer[all]<1.0,>=0.9->gradio==4.21.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/20/b5/11cf2e34fbb11b937e006286ab5b8cfd334fde1c8fa4dd7f491226931180/typer-0.12.3-py3-none-any.whl (47 kB)\n",
      "     ---------------------------------------- 0.0/47.2 kB ? eta -:--:--\n",
      "     ---------------------------------------- 47.2/47.2 kB 2.3 MB/s eta 0:00:00\n",
      "Requirement already satisfied: typing-extensions~=4.0 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from gradio==4.21.0->qwen-agent[gui]) (4.12.2)\n",
      "Collecting fsspec (from gradio-client==0.12.0->gradio==4.21.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/5e/44/73bea497ac69bafde2ee4269292fa3b41f1198f4bb7bbaaabde30ad29d4a/fsspec-2024.6.1-py3-none-any.whl (177 kB)\n",
      "     ---------------------------------------- 0.0/177.6 kB ? eta -:--:--\n",
      "     ------------------------------------- 177.6/177.6 kB 10.5 MB/s eta 0:00:00\n",
      "Collecting websockets<12.0,>=10.0 (from gradio-client==0.12.0->gradio==4.21.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/98/a7/0ed69892981351e5acf88fac0ff4c801fabca2c3bdef9fca4c7d3fde8c53/websockets-11.0.3-cp310-cp310-win_amd64.whl (124 kB)\n",
      "     ---------------------------------------- 0.0/124.7 kB ? eta -:--:--\n",
      "     ---------------------------------------- 124.7/124.7 kB ? eta 0:00:00\n",
      "Requirement already satisfied: idna>=2.8 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from anyio>=3.7.1->qwen-agent[gui]) (3.7)\n",
      "Requirement already satisfied: sniffio>=1.1 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from anyio>=3.7.1->qwen-agent[gui]) (1.3.1)\n",
      "Requirement already satisfied: exceptiongroup>=1.0.2 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from anyio>=3.7.1->qwen-agent[gui]) (1.2.2)\n",
      "Collecting aiohttp (from dashscope>=1.11.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/2e/6e/a43d0686303eb27a8ecb262a9d86f6a36e2e784a4100cf9d68f28df56104/aiohttp-3.10.0-cp310-cp310-win_amd64.whl (375 kB)\n",
      "     ---------------------------------------- 0.0/375.4 kB ? eta -:--:--\n",
      "     ------------------------------------- 375.4/375.4 kB 11.8 MB/s eta 0:00:00\n",
      "Collecting websocket-client (from dashscope>=1.11.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/5a/84/44687a29792a70e111c5c477230a72c4b957d88d16141199bf9acb7537a3/websocket_client-1.8.0-py3-none-any.whl (58 kB)\n",
      "     ---------------------------------------- 0.0/58.8 kB ? eta -:--:--\n",
      "     ---------------------------------------- 58.8/58.8 kB 3.2 MB/s eta 0:00:00\n",
      "Collecting starlette<0.38.0,>=0.37.2 (from fastapi>=0.103.1->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/fd/18/31fa32ed6c68ba66220204ef0be798c349d0a20c1901f9d4a794e08c76d8/starlette-0.37.2-py3-none-any.whl (71 kB)\n",
      "Collecting fastapi-cli>=0.0.2 (from fastapi>=0.103.1->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/a1/03/89bf615052aa5453c04d952225ded0b88aab6487b9c5f0c268939d13b860/fastapi_cli-0.0.4-py3-none-any.whl (9.5 kB)\n",
      "Collecting email_validator>=2.0.0 (from fastapi>=0.103.1->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d7/ee/bf0adb559ad3c786f12bcbc9296b3f5675f529199bef03e2df281fa1fadb/email_validator-2.2.0-py3-none-any.whl (33 kB)\n",
      "Collecting notebook (from jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/32/b4/b0cdaf52c35a3a40633136bee5152d6670acb555c698d23a3458dca65781/notebook-7.2.1-py3-none-any.whl (5.0 MB)\n",
      "     ---------------------------------------- 0.0/5.0 MB ? eta -:--:--\n",
      "     --- ------------------------------------ 0.4/5.0 MB 13.9 MB/s eta 0:00:01\n",
      "     ---- ----------------------------------- 0.6/5.0 MB 12.9 MB/s eta 0:00:01\n",
      "     ------ --------------------------------- 0.8/5.0 MB 7.3 MB/s eta 0:00:01\n",
      "     ------------- -------------------------- 1.6/5.0 MB 11.7 MB/s eta 0:00:01\n",
      "     ---------------- ----------------------- 2.1/5.0 MB 11.1 MB/s eta 0:00:01\n",
      "     ------------------- -------------------- 2.5/5.0 MB 11.4 MB/s eta 0:00:01\n",
      "     ----------------------- ---------------- 2.9/5.0 MB 11.7 MB/s eta 0:00:01\n",
      "     -------------------------- ------------- 3.3/5.0 MB 11.8 MB/s eta 0:00:01\n",
      "     ----------------------------- ---------- 3.7/5.0 MB 11.8 MB/s eta 0:00:01\n",
      "     ----------------------------- ---------- 3.7/5.0 MB 11.8 MB/s eta 0:00:01\n",
      "     ------------------------------------ --- 4.6/5.0 MB 11.7 MB/s eta 0:00:01\n",
      "     ---------------------------------------  5.0/5.0 MB 11.4 MB/s eta 0:00:01\n",
      "     ---------------------------------------- 5.0/5.0 MB 11.1 MB/s eta 0:00:00\n",
      "Collecting qtconsole (from jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/f2/3f/de5e5eb44900c1ed1c1567bc505e3b6e6f4c01cf29e558bf2f8cee29af5b/qtconsole-5.5.2-py3-none-any.whl (123 kB)\n",
      "     ---------------------------------------- 0.0/123.4 kB ? eta -:--:--\n",
      "     ---------------------------------------- 123.4/123.4 kB ? eta 0:00:00\n",
      "Collecting jupyter-console (from jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/ca/77/71d78d58f15c22db16328a476426f7ac4a60d3a5a7ba3b9627ee2f7903d4/jupyter_console-6.6.3-py3-none-any.whl (24 kB)\n",
      "Collecting nbconvert (from jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/b8/bb/bb5b6a515d1584aa2fd89965b11db6632e4bdc69495a52374bcc36e56cfa/nbconvert-7.16.4-py3-none-any.whl (257 kB)\n",
      "     ---------------------------------------- 0.0/257.4 kB ? eta -:--:--\n",
      "     -------------------------------------- 257.4/257.4 kB 8.0 MB/s eta 0:00:00\n",
      "Requirement already satisfied: ipykernel in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from jupyter>=1.0.0->qwen-agent[gui]) (6.29.5)\n",
      "Collecting ipywidgets (from jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d4/17/8b2ce5765dd423433d2e0727712629c46152fb0bc706b0977f847480f262/ipywidgets-8.1.3-py3-none-any.whl (139 kB)\n",
      "     ---------------------------------------- 0.0/139.4 kB ? eta -:--:--\n",
      "     -------------------------------------- 139.4/139.4 kB 8.6 MB/s eta 0:00:00\n",
      "Requirement already satisfied: contourpy>=1.0.1 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from matplotlib->qwen-agent[gui]) (1.2.1)\n",
      "Requirement already satisfied: cycler>=0.10 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from matplotlib->qwen-agent[gui]) (0.12.1)\n",
      "Requirement already satisfied: fonttools>=4.22.0 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from matplotlib->qwen-agent[gui]) (4.53.1)\n",
      "Requirement already satisfied: kiwisolver>=1.3.1 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from matplotlib->qwen-agent[gui]) (1.4.5)\n",
      "Requirement already satisfied: pyparsing>=2.3.1 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from matplotlib->qwen-agent[gui]) (3.1.2)\n",
      "Requirement already satisfied: python-dateutil>=2.7 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from matplotlib->qwen-agent[gui]) (2.9.0)\n",
      "Collecting pytz>=2020.1 (from pandas->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/9c/3d/a121f284241f08268b21359bd425f7d4825cffc5ac5cd0e1b3d82ffd2b10/pytz-2024.1-py2.py3-none-any.whl (505 kB)\n",
      "Collecting tzdata>=2022.7 (from pandas->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/65/58/f9c9e6be752e9fcb8b6a0ee9fb87e6e7a1f6bcab2cdc73f02bb7ba91ada0/tzdata-2024.1-py2.py3-none-any.whl (345 kB)\n",
      "Requirement already satisfied: annotated-types>=0.4.0 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from pydantic>=2.3.0->qwen-agent[gui]) (0.7.0)\n",
      "Requirement already satisfied: pydantic-core==2.20.1 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from pydantic>=2.3.0->qwen-agent[gui]) (2.20.1)\n",
      "Collecting click>=7.0 (from uvicorn>=0.23.2->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/00/2e/d53fa4befbf2cfa713304affc7ca780ce4fc1fd8710527771b58311a3229/click-8.1.7-py3-none-any.whl (97 kB)\n",
      "Requirement already satisfied: h11>=0.8 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from uvicorn>=0.23.2->qwen-agent[gui]) (0.14.0)\n",
      "Requirement already satisfied: soupsieve>1.2 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from beautifulsoup4->qwen-agent[gui]) (2.5)\n",
      "Collecting attrs>=19.2.0 (from jsonlines->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/e0/44/827b2a91a5816512fcaf3cc4ebc465ccd5d598c45cefa6703fcf4a79018f/attrs-23.2.0-py3-none-any.whl (60 kB)\n",
      "Collecting distro<2,>=1.7.0 (from openai->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/12/b3/231ffd4ab1fc9d679809f356cebee130ac7daa00d6d6f3206dd4fd137e9e/distro-1.9.0-py3-none-any.whl (20 kB)\n",
      "Requirement already satisfied: tqdm>4 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from openai->qwen-agent[gui]) (4.66.4)\n",
      "Requirement already satisfied: charset-normalizer>=2.0.0 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from pdfminer.six->qwen-agent[gui]) (3.3.2)\n",
      "Collecting cryptography>=36.0.0 (from pdfminer.six->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/e6/3d/696e7a0f04555c58a2813d47aaa78cb5ba863c1f453c74a4f45ae772b054/cryptography-43.0.0-cp39-abi3-win_amd64.whl (3.1 MB)\n",
      "     ---------------------------------------- 0.0/3.1 MB ? eta -:--:--\n",
      "     ----- ---------------------------------- 0.4/3.1 MB 13.9 MB/s eta 0:00:01\n",
      "     ----------- ---------------------------- 0.9/3.1 MB 10.9 MB/s eta 0:00:01\n",
      "     ---------------- ----------------------- 1.3/3.1 MB 11.6 MB/s eta 0:00:01\n",
      "     ---------------------- ----------------- 1.7/3.1 MB 12.0 MB/s eta 0:00:01\n",
      "     --------------------------- ------------ 2.1/3.1 MB 12.2 MB/s eta 0:00:01\n",
      "     ---------------------------- ----------- 2.2/3.1 MB 11.6 MB/s eta 0:00:01\n",
      "     --------------------------------- ------ 2.5/3.1 MB 10.2 MB/s eta 0:00:01\n",
      "     ---------------------------------------- 3.1/3.1 MB 10.9 MB/s eta 0:00:00\n",
      "Collecting pdfminer.six (from qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/eb/9c/e46fe7502b32d7db6af6e36a9105abb93301fa1ec475b5ddcba8b35ae23a/pdfminer.six-20231228-py3-none-any.whl (5.6 MB)\n",
      "     ---------------------------------------- 0.0/5.6 MB ? eta -:--:--\n",
      "     --- ------------------------------------ 0.4/5.6 MB 13.9 MB/s eta 0:00:01\n",
      "     ------ --------------------------------- 0.9/5.6 MB 13.7 MB/s eta 0:00:01\n",
      "     --------- ------------------------------ 1.3/5.6 MB 11.7 MB/s eta 0:00:01\n",
      "     ------------ --------------------------- 1.7/5.6 MB 12.1 MB/s eta 0:00:01\n",
      "     --------------- ------------------------ 2.1/5.6 MB 12.4 MB/s eta 0:00:01\n",
      "     --------------- ------------------------ 2.2/5.6 MB 11.6 MB/s eta 0:00:01\n",
      "     -------------------- ------------------- 2.9/5.6 MB 11.4 MB/s eta 0:00:01\n",
      "     ------------------------ --------------- 3.4/5.6 MB 12.0 MB/s eta 0:00:01\n",
      "     --------------------------- ------------ 3.8/5.6 MB 11.6 MB/s eta 0:00:01\n",
      "     ------------------------------ --------- 4.2/5.6 MB 11.8 MB/s eta 0:00:01\n",
      "     --------------------------------- ------ 4.7/5.6 MB 11.9 MB/s eta 0:00:01\n",
      "     ------------------------------------ --- 5.1/5.6 MB 11.6 MB/s eta 0:00:01\n",
      "     ------------------------------------- -- 5.3/5.6 MB 11.6 MB/s eta 0:00:01\n",
      "     ---------------------------------------  5.5/5.6 MB 10.9 MB/s eta 0:00:01\n",
      "     ---------------------------------------- 5.6/5.6 MB 10.6 MB/s eta 0:00:00\n",
      "Collecting pypdfium2>=4.18.0 (from pdfplumber->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/25/bd/56d9ec6b9f0fc4e0d95288759f3179f0fcd34b1a1526b75673d2f6d5196f/pypdfium2-4.30.0-py3-none-win_amd64.whl (2.9 MB)\n",
      "     ---------------------------------------- 0.0/2.9 MB ? eta -:--:--\n",
      "     ------ --------------------------------- 0.4/2.9 MB 13.9 MB/s eta 0:00:01\n",
      "     ----------- ---------------------------- 0.8/2.9 MB 10.8 MB/s eta 0:00:01\n",
      "     ----------------- ---------------------- 1.3/2.9 MB 11.6 MB/s eta 0:00:01\n",
      "     ------------------- -------------------- 1.4/2.9 MB 11.3 MB/s eta 0:00:01\n",
      "     ---------------------- ----------------- 1.6/2.9 MB 9.4 MB/s eta 0:00:01\n",
      "     ---------------------------------- ----- 2.5/2.9 MB 11.4 MB/s eta 0:00:01\n",
      "     ---------------------------------------  2.9/2.9 MB 11.5 MB/s eta 0:00:01\n",
      "     ---------------------------------------- 2.9/2.9 MB 10.8 MB/s eta 0:00:00\n",
      "Requirement already satisfied: lxml>=3.1.0 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from python-docx->qwen-agent[gui]) (5.2.2)\n",
      "Collecting XlsxWriter>=0.5.7 (from python-pptx->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/a7/ea/53d1fe468e63e092cf16e2c18d16f50c29851242f9dd12d6a66e0d7f0d02/XlsxWriter-3.2.0-py3-none-any.whl (159 kB)\n",
      "     ---------------------------------------- 0.0/159.9 kB ? eta -:--:--\n",
      "     ------------------------------------- 159.9/159.9 kB 10.0 MB/s eta 0:00:00\n",
      "Requirement already satisfied: urllib3<3,>=1.21.1 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from requests->qwen-agent[gui]) (2.2.2)\n",
      "Requirement already satisfied: certifi>=2017.4.17 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from requests->qwen-agent[gui]) (2024.7.4)\n",
      "Collecting mpmath<1.4,>=1.1.0 (from sympy->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/43/e3/7d92a15f894aa0c9c4b49b8ee9ac9850d6e63b03c9c32c0367a13ae62209/mpmath-1.3.0-py3-none-any.whl (536 kB)\n",
      "Collecting regex>=2022.1.18 (from tiktoken->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/fb/cc/6485c2fc72d0de9b55392246b80921639f1be62bed1e33e982940306b5ba/regex-2024.7.24-cp310-cp310-win_amd64.whl (269 kB)\n",
      "     ---------------------------------------- 0.0/269.7 kB ? eta -:--:--\n",
      "     ------------------------------------- 269.7/269.7 kB 17.3 MB/s eta 0:00:00\n",
      "Collecting jsonschema>=3.0 (from altair<6.0,>=4.2.0->gradio==4.21.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/69/4a/4f9dbeb84e8850557c02365a0eee0649abe5eb1d84af92a25731c6c0f922/jsonschema-4.23.0-py3-none-any.whl (88 kB)\n",
      "     ---------------------------------------- 0.0/88.5 kB ? eta -:--:--\n",
      "     ---------------------------------------- 88.5/88.5 kB ? eta 0:00:00\n",
      "Collecting toolz (from altair<6.0,>=4.2.0->gradio==4.21.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b7/8a/d82202c9f89eab30f9fc05380daae87d617e2ad11571ab23d7c13a29bb54/toolz-0.12.1-py3-none-any.whl (56 kB)\n",
      "Requirement already satisfied: colorama in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from click>=7.0->uvicorn>=0.23.2->qwen-agent[gui]) (0.4.6)\n",
      "Collecting cffi>=1.12 (from cryptography>=36.0.0->pdfminer.six->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/be/3e/0b197d1bfbf386a90786b251dbf2634a15f2ea3d4e4070e99c7d1c7689cf/cffi-1.16.0-cp310-cp310-win_amd64.whl (181 kB)\n",
      "     ---------------------------------------- 0.0/181.6 kB ? eta -:--:--\n",
      "     ------------------------------------- 181.6/181.6 kB 10.7 MB/s eta 0:00:00\n",
      "Collecting dnspython>=2.0.0 (from email_validator>=2.0.0->fastapi>=0.103.1->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/87/a1/8c5287991ddb8d3e4662f71356d9656d91ab3a36618c3dd11b280df0d255/dnspython-2.6.1-py3-none-any.whl (307 kB)\n",
      "     ---------------------------------------- 0.0/307.7 kB ? eta -:--:--\n",
      "     -------------------------------------- 307.7/307.7 kB 9.6 MB/s eta 0:00:00\n",
      "Requirement already satisfied: httpcore==1.* in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from httpx>=0.24.1->gradio==4.21.0->qwen-agent[gui]) (1.0.5)\n",
      "Collecting filelock (from huggingface-hub>=0.19.3->gradio==4.21.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/ae/f0/48285f0262fe47103a4a45972ed2f9b93e4c80b8fd609fa98da78b2a5706/filelock-3.15.4-py3-none-any.whl (16 kB)\n",
      "Requirement already satisfied: six>=1.5 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from python-dateutil>=2.7->matplotlib->qwen-agent[gui]) (1.16.0)\n",
      "Collecting shellingham>=1.3.0 (from typer<1.0,>=0.9->typer[all]<1.0,>=0.9->gradio==4.21.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/e0/f9/0595336914c5619e5f28a1fb793285925a8cd4b432c9da0a987836c7f822/shellingham-1.5.4-py2.py3-none-any.whl (9.8 kB)\n",
      "Collecting rich>=10.11.0 (from typer<1.0,>=0.9->typer[all]<1.0,>=0.9->gradio==4.21.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/87/67/a37f6214d0e9fe57f6ae54b2956d550ca8365857f42a1ce0392bb21d9410/rich-13.7.1-py3-none-any.whl (240 kB)\n",
      "Collecting httptools>=0.5.0 (from uvicorn[standard]>=0.12.0->fastapi>=0.103.1->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/1e/fc/8a26c2adcd3f141e4729897633f03832b71ebea6f4c31cce67a92ded1961/httptools-0.6.1-cp310-cp310-win_amd64.whl (58 kB)\n",
      "     ---------------------------------------- 0.0/58.2 kB ? eta -:--:--\n",
      "     ---------------------------------------- 58.2/58.2 kB ? eta 0:00:00\n",
      "Collecting python-dotenv>=0.13 (from uvicorn[standard]>=0.12.0->fastapi>=0.103.1->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/6a/3e/b68c118422ec867fa7ab88444e1274aa40681c606d59ac27de5a5588f082/python_dotenv-1.0.1-py3-none-any.whl (19 kB)\n",
      "Collecting watchfiles>=0.13 (from uvicorn[standard]>=0.12.0->fastapi>=0.103.1->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/f8/79/9d7e16e805c721d5e5a3b1d1a3e798cc9b1282b799d7058a70ab506dc970/watchfiles-0.22.0-cp310-none-win_amd64.whl (282 kB)\n",
      "     ---------------------------------------- 0.0/282.1 kB ? eta -:--:--\n",
      "     -------------------------------------- 282.1/282.1 kB 8.8 MB/s eta 0:00:00\n",
      "Collecting aiohappyeyeballs>=2.3.0 (from aiohttp->dashscope>=1.11.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/07/b1/d9455cf313df7b2fe6c60a871eb96801b6e8fbdc7d736f6576492b4c97b3/aiohappyeyeballs-2.3.2-py3-none-any.whl (11 kB)\n",
      "Collecting aiosignal>=1.1.2 (from aiohttp->dashscope>=1.11.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/76/ac/a7305707cb852b7e16ff80eaf5692309bde30e2b1100a1fcacdc8f731d97/aiosignal-1.3.1-py3-none-any.whl (7.6 kB)\n",
      "Collecting frozenlist>=1.1.1 (from aiohttp->dashscope>=1.11.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/61/15/2b5d644d81282f00b61e54f7b00a96f9c40224107282efe4cd9d2bf1433a/frozenlist-1.4.1-cp310-cp310-win_amd64.whl (50 kB)\n",
      "Collecting multidict<7.0,>=4.5 (from aiohttp->dashscope>=1.11.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ef/3d/ba0dc18e96c5d83731c54129819d5892389e180f54ebb045c6124b2e8b87/multidict-6.0.5-cp310-cp310-win_amd64.whl (28 kB)\n",
      "Collecting yarl<2.0,>=1.0 (from aiohttp->dashscope>=1.11.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/31/d4/2085272a5ccf87af74d4e02787c242c5d60367840a4637b2835565264302/yarl-1.9.4-cp310-cp310-win_amd64.whl (76 kB)\n",
      "Collecting async-timeout<5.0,>=4.0 (from aiohttp->dashscope>=1.11.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a7/fa/e01228c2938de91d47b307831c62ab9e4001e747789d0b05baf779a6488c/async_timeout-4.0.3-py3-none-any.whl (5.7 kB)\n",
      "Requirement already satisfied: comm>=0.1.1 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from ipykernel->jupyter>=1.0.0->qwen-agent[gui]) (0.2.2)\n",
      "Requirement already satisfied: debugpy>=1.6.5 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from ipykernel->jupyter>=1.0.0->qwen-agent[gui]) (1.8.2)\n",
      "Requirement already satisfied: ipython>=7.23.1 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from ipykernel->jupyter>=1.0.0->qwen-agent[gui]) (8.26.0)\n",
      "Requirement already satisfied: jupyter-client>=6.1.12 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from ipykernel->jupyter>=1.0.0->qwen-agent[gui]) (8.6.2)\n",
      "Requirement already satisfied: jupyter-core!=5.0.*,>=4.12 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from ipykernel->jupyter>=1.0.0->qwen-agent[gui]) (5.7.2)\n",
      "Requirement already satisfied: matplotlib-inline>=0.1 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from ipykernel->jupyter>=1.0.0->qwen-agent[gui]) (0.1.7)\n",
      "Requirement already satisfied: nest-asyncio in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from ipykernel->jupyter>=1.0.0->qwen-agent[gui]) (1.6.0)\n",
      "Requirement already satisfied: psutil in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from ipykernel->jupyter>=1.0.0->qwen-agent[gui]) (6.0.0)\n",
      "Requirement already satisfied: pyzmq>=24 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from ipykernel->jupyter>=1.0.0->qwen-agent[gui]) (26.0.3)\n",
      "Requirement already satisfied: tornado>=6.1 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from ipykernel->jupyter>=1.0.0->qwen-agent[gui]) (6.4.1)\n",
      "Requirement already satisfied: traitlets>=5.4.0 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from ipykernel->jupyter>=1.0.0->qwen-agent[gui]) (5.14.3)\n",
      "Collecting widgetsnbextension~=4.0.11 (from ipywidgets->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/93/c1/68423f43bc95d873d745bef8030ecf47cd67f932f20b3f7080a02cff43ca/widgetsnbextension-4.0.11-py3-none-any.whl (2.3 MB)\n",
      "     ---------------------------------------- 0.0/2.3 MB ? eta -:--:--\n",
      "     ------- -------------------------------- 0.4/2.3 MB 13.9 MB/s eta 0:00:01\n",
      "     ---------- ----------------------------- 0.6/2.3 MB 12.9 MB/s eta 0:00:01\n",
      "     -------------- ------------------------- 0.8/2.3 MB 7.5 MB/s eta 0:00:01\n",
      "     ---------------------------- ----------- 1.6/2.3 MB 11.7 MB/s eta 0:00:01\n",
      "     ----------------------------------- ---- 2.1/2.3 MB 11.9 MB/s eta 0:00:01\n",
      "     ---------------------------------------- 2.3/2.3 MB 11.5 MB/s eta 0:00:00\n",
      "Collecting jupyterlab-widgets~=3.0.11 (from ipywidgets->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/65/f6/659ca44182c86f57977e946047c339c717745fda9f43b7ac47f274e86553/jupyterlab_widgets-3.0.11-py3-none-any.whl (214 kB)\n",
      "     ---------------------------------------- 0.0/214.4 kB ? eta -:--:--\n",
      "     ------------------------------------- 214.4/214.4 kB 12.8 MB/s eta 0:00:00\n",
      "Requirement already satisfied: prompt-toolkit>=3.0.30 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from jupyter-console->jupyter>=1.0.0->qwen-agent[gui]) (3.0.47)\n",
      "Requirement already satisfied: pygments in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from jupyter-console->jupyter>=1.0.0->qwen-agent[gui]) (2.18.0)\n",
      "Collecting bleach!=5.0.0 (from nbconvert->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ea/63/da7237f805089ecc28a3f36bca6a21c31fcbc2eb380f3b8f1be3312abd14/bleach-6.1.0-py3-none-any.whl (162 kB)\n",
      "Collecting defusedxml (from nbconvert->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/07/6c/aa3f2f849e01cb6a001cd8554a88d4c77c5c1a31c95bdf1cf9301e6d9ef4/defusedxml-0.7.1-py2.py3-none-any.whl (25 kB)\n",
      "Collecting jupyterlab-pygments (from nbconvert->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b1/dd/ead9d8ea85bf202d90cc513b533f9c363121c7792674f78e0d8a854b63b4/jupyterlab_pygments-0.3.0-py3-none-any.whl (15 kB)\n",
      "Collecting mistune<4,>=2.0.3 (from nbconvert->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f0/74/c95adcdf032956d9ef6c89a9b8a5152bf73915f8c633f3e3d88d06bd699c/mistune-3.0.2-py3-none-any.whl (47 kB)\n",
      "Collecting nbclient>=0.5.0 (from nbconvert->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/66/e8/00517a23d3eeaed0513e718fbc94aab26eaa1758f5690fc8578839791c79/nbclient-0.10.0-py3-none-any.whl (25 kB)\n",
      "Collecting nbformat>=5.7 (from nbconvert->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a9/82/0340caa499416c78e5d8f5f05947ae4bc3cba53c9f038ab6e9ed964e22f1/nbformat-5.10.4-py3-none-any.whl (78 kB)\n",
      "Collecting pandocfilters>=1.4.1 (from nbconvert->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ef/af/4fbc8cab944db5d21b7e2a5b8e9211a03a79852b1157e2c102fcc61ac440/pandocfilters-1.5.1-py2.py3-none-any.whl (8.7 kB)\n",
      "Collecting tinycss2 (from nbconvert->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/2c/4d/0db5b8a613d2a59bbc29bc5bb44a2f8070eb9ceab11c50d477502a8a0092/tinycss2-1.3.0-py3-none-any.whl (22 kB)\n",
      "Collecting jupyter-server<3,>=2.4.0 (from notebook->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/57/e1/085edea6187a127ca8ea053eb01f4e1792d778b4d192c74d32eb6730fed6/jupyter_server-2.14.2-py3-none-any.whl (383 kB)\n",
      "     ---------------------------------------- 0.0/383.6 kB ? eta -:--:--\n",
      "     ------------------------------------- 383.6/383.6 kB 12.0 MB/s eta 0:00:00\n",
      "Collecting jupyterlab-server<3,>=2.27.1 (from notebook->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/54/09/2032e7d15c544a0e3cd831c51d77a8ca57f7555b2e1b2922142eddb02a84/jupyterlab_server-2.27.3-py3-none-any.whl (59 kB)\n",
      "     ---------------------------------------- 0.0/59.7 kB ? eta -:--:--\n",
      "     ---------------------------------------- 59.7/59.7 kB 3.3 MB/s eta 0:00:00\n",
      "Collecting jupyterlab<4.3,>=4.2.0 (from notebook->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/f6/b2/ba6fba3f52f785ba9740a7954e0d4477828f7395ee9f2f4707db5835a833/jupyterlab-4.2.4-py3-none-any.whl (11.6 MB)\n",
      "     ---------------------------------------- 0.0/11.6 MB ? eta -:--:--\n",
      "     - -------------------------------------- 0.5/11.6 MB 14.2 MB/s eta 0:00:01\n",
      "     -- ------------------------------------- 0.6/11.6 MB 12.9 MB/s eta 0:00:01\n",
      "     -- ------------------------------------- 0.8/11.6 MB 7.5 MB/s eta 0:00:02\n",
      "     ----- ---------------------------------- 1.7/11.6 MB 11.8 MB/s eta 0:00:01\n",
      "     ------- -------------------------------- 2.1/11.6 MB 11.1 MB/s eta 0:00:01\n",
      "     -------- ------------------------------- 2.5/11.6 MB 11.4 MB/s eta 0:00:01\n",
      "     ---------- ----------------------------- 2.9/11.6 MB 11.7 MB/s eta 0:00:01\n",
      "     ----------- ---------------------------- 3.3/11.6 MB 11.8 MB/s eta 0:00:01\n",
      "     ------------ --------------------------- 3.7/11.6 MB 11.8 MB/s eta 0:00:01\n",
      "     ------------ --------------------------- 3.7/11.6 MB 11.8 MB/s eta 0:00:01\n",
      "     --------------- ------------------------ 4.6/11.6 MB 11.7 MB/s eta 0:00:01\n",
      "     ----------------- ---------------------- 5.0/11.6 MB 11.4 MB/s eta 0:00:01\n",
      "     ------------------ --------------------- 5.4/11.6 MB 11.5 MB/s eta 0:00:01\n",
      "     ------------------- -------------------- 5.8/11.6 MB 11.6 MB/s eta 0:00:01\n",
      "     --------------------- ------------------ 6.2/11.6 MB 11.7 MB/s eta 0:00:01\n",
      "     ---------------------- ----------------- 6.6/11.6 MB 11.5 MB/s eta 0:00:01\n",
      "     ----------------------- ---------------- 6.8/11.6 MB 11.7 MB/s eta 0:00:01\n",
      "     ------------------------ --------------- 7.1/11.6 MB 11.0 MB/s eta 0:00:01\n",
      "     -------------------------- ------------- 7.9/11.6 MB 11.4 MB/s eta 0:00:01\n",
      "     ---------------------------- ----------- 8.3/11.6 MB 11.5 MB/s eta 0:00:01\n",
      "     ----------------------------- ---------- 8.7/11.6 MB 11.6 MB/s eta 0:00:01\n",
      "     ------------------------------- -------- 9.1/11.6 MB 11.4 MB/s eta 0:00:01\n",
      "     -------------------------------- ------- 9.5/11.6 MB 11.5 MB/s eta 0:00:01\n",
      "     --------------------------------- ------ 9.8/11.6 MB 11.6 MB/s eta 0:00:01\n",
      "     ---------------------------------- ----- 9.9/11.6 MB 11.1 MB/s eta 0:00:01\n",
      "     ------------------------------------ -- 10.8/11.6 MB 11.5 MB/s eta 0:00:01\n",
      "     ------------------------------------- - 11.2/11.6 MB 11.9 MB/s eta 0:00:01\n",
      "     --------------------------------------  11.6/11.6 MB 11.7 MB/s eta 0:00:01\n",
      "     --------------------------------------- 11.6/11.6 MB 11.3 MB/s eta 0:00:00\n",
      "Collecting notebook-shim<0.3,>=0.2 (from notebook->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f9/33/bd5b9137445ea4b680023eb0469b2bb969d61303dedb2aac6560ff3d14a1/notebook_shim-0.2.4-py3-none-any.whl (13 kB)\n",
      "Collecting qtpy>=2.4.0 (from qtconsole->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/7e/a9/2146d5117ad8a81185331e0809a6b48933c10171f5bac253c6df9fce991c/QtPy-2.4.1-py3-none-any.whl (93 kB)\n",
      "     ---------------------------------------- 0.0/93.5 kB ? eta -:--:--\n",
      "     ---------------------------------------- 93.5/93.5 kB ? eta 0:00:00\n",
      "Collecting webencodings (from bleach!=5.0.0->nbconvert->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f4/24/2a3e3df732393fed8b3ebf2ec078f05546de641fe1b667ee316ec1dcf3b7/webencodings-0.5.1-py2.py3-none-any.whl (11 kB)\n",
      "Collecting pycparser (from cffi>=1.12->cryptography>=36.0.0->pdfminer.six->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/13/a3/a812df4e2dd5696d1f351d58b8fe16a405b234ad2886a0dab9183fb78109/pycparser-2.22-py3-none-any.whl (117 kB)\n",
      "Requirement already satisfied: decorator in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from ipython>=7.23.1->ipykernel->jupyter>=1.0.0->qwen-agent[gui]) (5.1.1)\n",
      "Requirement already satisfied: jedi>=0.16 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from ipython>=7.23.1->ipykernel->jupyter>=1.0.0->qwen-agent[gui]) (0.19.1)\n",
      "Requirement already satisfied: stack-data in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from ipython>=7.23.1->ipykernel->jupyter>=1.0.0->qwen-agent[gui]) (0.6.2)\n",
      "Collecting jsonschema-specifications>=2023.03.6 (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio==4.21.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ee/07/44bd408781594c4d0a027666ef27fab1e441b109dc3b76b4f836f8fd04fe/jsonschema_specifications-2023.12.1-py3-none-any.whl (18 kB)\n",
      "Collecting referencing>=0.28.4 (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio==4.21.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/b7/59/2056f61236782a2c86b33906c025d4f4a0b17be0161b63b70fd9e8775d36/referencing-0.35.1-py3-none-any.whl (26 kB)\n",
      "Collecting rpds-py>=0.7.1 (from jsonschema>=3.0->altair<6.0,>=4.2.0->gradio==4.21.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/e0/26/bb2806c31c25a9047264d0da4dd3136080374be85bf4a3bc290e329a28c5/rpds_py-0.19.1-cp310-none-win_amd64.whl (210 kB)\n",
      "     ---------------------------------------- 0.0/210.5 kB ? eta -:--:--\n",
      "     ------------------------------------- 210.5/210.5 kB 12.5 MB/s eta 0:00:00\n",
      "Requirement already satisfied: platformdirs>=2.5 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from jupyter-core!=5.0.*,>=4.12->ipykernel->jupyter>=1.0.0->qwen-agent[gui]) (4.2.2)\n",
      "Requirement already satisfied: pywin32>=300 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from jupyter-core!=5.0.*,>=4.12->ipykernel->jupyter>=1.0.0->qwen-agent[gui]) (306)\n",
      "Collecting argon2-cffi>=21.1 (from jupyter-server<3,>=2.4.0->notebook->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a4/6a/e8a041599e78b6b3752da48000b14c8d1e8a04ded09c88c714ba047f34f5/argon2_cffi-23.1.0-py3-none-any.whl (15 kB)\n",
      "Collecting jupyter-events>=0.9.0 (from jupyter-server<3,>=2.4.0->notebook->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a5/94/059180ea70a9a326e1815176b2370da56376da347a796f8c4f0b830208ef/jupyter_events-0.10.0-py3-none-any.whl (18 kB)\n",
      "Collecting jupyter-server-terminals>=0.4.4 (from jupyter-server<3,>=2.4.0->notebook->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/07/2d/2b32cdbe8d2a602f697a649798554e4f072115438e92249624e532e8aca6/jupyter_server_terminals-0.5.3-py3-none-any.whl (13 kB)\n",
      "Collecting overrides>=5.0 (from jupyter-server<3,>=2.4.0->notebook->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/2c/ab/fc8290c6a4c722e5514d80f62b2dc4c4df1a68a41d1364e625c35990fcf3/overrides-7.7.0-py3-none-any.whl (17 kB)\n",
      "Collecting prometheus-client>=0.9 (from jupyter-server<3,>=2.4.0->notebook->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/c7/98/745b810d822103adca2df8decd4c0bbe839ba7ad3511af3f0d09692fc0f0/prometheus_client-0.20.0-py3-none-any.whl (54 kB)\n",
      "Collecting pywinpty>=2.0.1 (from jupyter-server<3,>=2.4.0->notebook->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/37/c4/940928b15435d56f7af38c0fab36cd00413f185721fcef4265d06bd543c9/pywinpty-2.0.13-cp310-none-win_amd64.whl (1.4 MB)\n",
      "     ---------------------------------------- 0.0/1.4 MB ? eta -:--:--\n",
      "     ------------ --------------------------- 0.4/1.4 MB 9.2 MB/s eta 0:00:01\n",
      "     ----------------- ---------------------- 0.6/1.4 MB 12.9 MB/s eta 0:00:01\n",
      "     ------------------------ --------------- 0.8/1.4 MB 7.7 MB/s eta 0:00:01\n",
      "     ---------------------------------------- 1.4/1.4 MB 9.9 MB/s eta 0:00:00\n",
      "Collecting send2trash>=1.8.2 (from jupyter-server<3,>=2.4.0->notebook->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/40/b0/4562db6223154aa4e22f939003cb92514c79f3d4dccca3444253fd17f902/Send2Trash-1.8.3-py3-none-any.whl (18 kB)\n",
      "Collecting terminado>=0.8.3 (from jupyter-server<3,>=2.4.0->notebook->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/6a/9e/2064975477fdc887e47ad42157e214526dcad8f317a948dee17e1659a62f/terminado-0.18.1-py3-none-any.whl (14 kB)\n",
      "Collecting async-lru>=1.0.0 (from jupyterlab<4.3,>=4.2.0->notebook->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/fa/9f/3c3503693386c4b0f245eaf5ca6198e3b28879ca0a40bde6b0e319793453/async_lru-2.0.4-py3-none-any.whl (6.1 kB)\n",
      "Collecting jupyter-lsp>=2.0.0 (from jupyterlab<4.3,>=4.2.0->notebook->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/07/e0/7bd7cff65594fd9936e2f9385701e44574fc7d721331ff676ce440b14100/jupyter_lsp-2.2.5-py3-none-any.whl (69 kB)\n",
      "     ---------------------------------------- 0.0/69.1 kB ? eta -:--:--\n",
      "     ---------------------------------------- 69.1/69.1 kB 3.7 MB/s eta 0:00:00\n",
      "Requirement already satisfied: setuptools>=40.1.0 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from jupyterlab<4.3,>=4.2.0->notebook->jupyter>=1.0.0->qwen-agent[gui]) (70.3.0)\n",
      "Collecting tomli>=1.2.2 (from jupyterlab<4.3,>=4.2.0->notebook->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/97/75/10a9ebee3fd790d20926a90a2547f0bf78f371b2f13aa822c759680ca7b9/tomli-2.0.1-py3-none-any.whl (12 kB)\n",
      "Collecting babel>=2.10 (from jupyterlab-server<3,>=2.27.1->notebook->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/27/45/377f7e32a5c93d94cd56542349b34efab5ca3f9e2fd5a68c5e93169aa32d/Babel-2.15.0-py3-none-any.whl (9.6 MB)\n",
      "     ---------------------------------------- 0.0/9.6 MB ? eta -:--:--\n",
      "     - -------------------------------------- 0.4/9.6 MB 9.2 MB/s eta 0:00:02\n",
      "     -- ------------------------------------- 0.6/9.6 MB 9.6 MB/s eta 0:00:01\n",
      "     --- ------------------------------------ 0.8/9.6 MB 7.1 MB/s eta 0:00:02\n",
      "     ------ --------------------------------- 1.6/9.6 MB 11.5 MB/s eta 0:00:01\n",
      "     -------- ------------------------------- 2.1/9.6 MB 10.9 MB/s eta 0:00:01\n",
      "     ---------- ----------------------------- 2.5/9.6 MB 11.2 MB/s eta 0:00:01\n",
      "     ------------ --------------------------- 2.9/9.6 MB 11.6 MB/s eta 0:00:01\n",
      "     ------------- -------------------------- 3.3/9.6 MB 11.1 MB/s eta 0:00:01\n",
      "     --------------- ------------------------ 3.7/9.6 MB 11.2 MB/s eta 0:00:01\n",
      "     --------------- ------------------------ 3.7/9.6 MB 11.2 MB/s eta 0:00:01\n",
      "     ------------------ --------------------- 4.5/9.6 MB 11.5 MB/s eta 0:00:01\n",
      "     -------------------- ------------------- 4.9/9.6 MB 11.3 MB/s eta 0:00:01\n",
      "     ---------------------- ----------------- 5.4/9.6 MB 11.4 MB/s eta 0:00:01\n",
      "     ----------------------- ---------------- 5.8/9.6 MB 11.5 MB/s eta 0:00:01\n",
      "     ------------------------- -------------- 6.2/9.6 MB 11.3 MB/s eta 0:00:01\n",
      "     --------------------------- ------------ 6.6/9.6 MB 11.4 MB/s eta 0:00:01\n",
      "     --------------------------- ------------ 6.7/9.6 MB 11.6 MB/s eta 0:00:01\n",
      "     ----------------------------- ---------- 7.0/9.6 MB 10.7 MB/s eta 0:00:01\n",
      "     -------------------------------- ------- 7.8/9.6 MB 11.4 MB/s eta 0:00:01\n",
      "     ---------------------------------- ----- 8.3/9.6 MB 11.5 MB/s eta 0:00:01\n",
      "     ------------------------------------ --- 8.7/9.6 MB 11.3 MB/s eta 0:00:01\n",
      "     ------------------------------------- -- 9.1/9.6 MB 11.4 MB/s eta 0:00:01\n",
      "     ---------------------------------------  9.5/9.6 MB 11.5 MB/s eta 0:00:01\n",
      "     ---------------------------------------- 9.6/9.6 MB 11.2 MB/s eta 0:00:00\n",
      "Collecting fastjsonschema>=2.15 (from nbformat>=5.7->nbconvert->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/6d/ca/086311cdfc017ec964b2436fe0c98c1f4efcb7e4c328956a22456e497655/fastjsonschema-2.20.0-py3-none-any.whl (23 kB)\n",
      "Requirement already satisfied: wcwidth in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from prompt-toolkit>=3.0.30->jupyter-console->jupyter>=1.0.0->qwen-agent[gui]) (0.2.13)\n",
      "Collecting markdown-it-py>=2.2.0 (from rich>=10.11.0->typer<1.0,>=0.9->typer[all]<1.0,>=0.9->gradio==4.21.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/42/d7/1ec15b46af6af88f19b8e5ffea08fa375d433c998b8a7639e76935c14f1f/markdown_it_py-3.0.0-py3-none-any.whl (87 kB)\n",
      "Collecting argon2-cffi-bindings (from argon2-cffi>=21.1->jupyter-server<3,>=2.4.0->notebook->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/37/2c/e34e47c7dee97ba6f01a6203e0383e15b60fb85d78ac9a15cd066f6fe28b/argon2_cffi_bindings-21.2.0-cp36-abi3-win_amd64.whl (30 kB)\n",
      "Requirement already satisfied: parso<0.9.0,>=0.8.3 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from jedi>=0.16->ipython>=7.23.1->ipykernel->jupyter>=1.0.0->qwen-agent[gui]) (0.8.4)\n",
      "Collecting python-json-logger>=2.0.4 (from jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/35/a6/145655273568ee78a581e734cf35beb9e33a370b29c5d3c8fee3744de29f/python_json_logger-2.0.7-py3-none-any.whl (8.1 kB)\n",
      "Collecting rfc3339-validator (from jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/7b/44/4e421b96b67b2daff264473f7465db72fbdf36a07e05494f50300cc7b0c6/rfc3339_validator-0.1.4-py2.py3-none-any.whl (3.5 kB)\n",
      "Collecting rfc3986-validator>=0.1.1 (from jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/9e/51/17023c0f8f1869d8806b979a2bffa3f861f26a3f1a66b094288323fba52f/rfc3986_validator-0.1.1-py2.py3-none-any.whl (4.2 kB)\n",
      "Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich>=10.11.0->typer<1.0,>=0.9->typer[all]<1.0,>=0.9->gradio==4.21.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b3/38/89ba8ad64ae25be8de66a6d463314cf1eb366222074cfda9ee839c56a4b4/mdurl-0.1.2-py3-none-any.whl (10.0 kB)\n",
      "Requirement already satisfied: executing>=1.2.0 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from stack-data->ipython>=7.23.1->ipykernel->jupyter>=1.0.0->qwen-agent[gui]) (2.0.1)\n",
      "Requirement already satisfied: asttokens>=2.1.0 in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from stack-data->ipython>=7.23.1->ipykernel->jupyter>=1.0.0->qwen-agent[gui]) (2.4.1)\n",
      "Requirement already satisfied: pure-eval in g:\\anaconda3\\envs\\chatocr\\lib\\site-packages (from stack-data->ipython>=7.23.1->ipykernel->jupyter>=1.0.0->qwen-agent[gui]) (0.2.2)\n",
      "Collecting fqdn (from jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/cf/58/8acf1b3e91c58313ce5cb67df61001fc9dcd21be4fadb76c1a2d540e09ed/fqdn-1.5.1-py3-none-any.whl (9.1 kB)\n",
      "Collecting isoduration (from jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/7b/55/e5326141505c5d5e34c5e0935d2908a74e4561eca44108fbfb9c13d2911a/isoduration-20.11.0-py3-none-any.whl (11 kB)\n",
      "Collecting jsonpointer>1.13 (from jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/71/92/5e77f98553e9e75130c78900d000368476aed74276eb8ae8796f65f00918/jsonpointer-3.0.0-py2.py3-none-any.whl (7.6 kB)\n",
      "Collecting uri-template (from jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/e7/00/3fca040d7cf8a32776d3d81a00c8ee7457e00f80c649f1e4a863c8321ae9/uri_template-1.3.0-py3-none-any.whl (11 kB)\n",
      "Collecting webcolors>=24.6.0 (from jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/3b/45/0c30e10a2ac52606476394e4ba11cf3b12ba5823e7fbb9167f80eee6000a/webcolors-24.6.0-py3-none-any.whl (14 kB)\n",
      "Collecting arrow>=0.15.0 (from isoduration->jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f8/ed/e97229a566617f2ae958a6b13e7cc0f585470eac730a73e9e82c32a3cdd2/arrow-1.3.0-py3-none-any.whl (66 kB)\n",
      "Collecting types-python-dateutil>=2.8.10 (from arrow>=0.15.0->isoduration->jsonschema[format-nongpl]>=4.18.0->jupyter-events>=0.9.0->jupyter-server<3,>=2.4.0->notebook->jupyter>=1.0.0->qwen-agent[gui])\n",
      "  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/c7/1b/af4f4c4f3f7339a4b7eb3c0ab13416db98f8ac09de3399129ee5fdfa282b/types_python_dateutil-2.9.0.20240316-py3-none-any.whl (9.7 kB)\n",
      "Building wheels for collected packages: html2text, jieba\n",
      "  Building wheel for html2text (setup.py): started\n",
      "  Building wheel for html2text (setup.py): finished with status 'done'\n",
      "  Created wheel for html2text: filename=html2text-2024.2.26-py3-none-any.whl size=33130 sha256=5bd5e45dd5857cbbc373c88bed2802090a7df9323a9eaf6f023149ca0a05648b\n",
      "  Stored in directory: c:\\users\\hyz\\appdata\\local\\pip\\cache\\wheels\\92\\64\\92\\9b760343fcce84cb2868f2015af14f48b1841e08b24e69cf48\n",
      "  Building wheel for jieba (setup.py): started\n",
      "  Building wheel for jieba (setup.py): finished with status 'done'\n",
      "  Created wheel for jieba: filename=jieba-0.42.1-py3-none-any.whl size=19314474 sha256=b1ff687031ee3dda5d233cf14ffe6f5e4b7ae7c8b834880f2000241109fd1770\n",
      "  Stored in directory: c:\\users\\hyz\\appdata\\local\\pip\\cache\\wheels\\b2\\9b\\80\\7537177f75993c29af08e0d00c753724c7f06c646352be50a3\n",
      "Successfully built html2text jieba\n",
      "Installing collected packages: webencodings, snowballstemmer, pytz, pydub, mpmath, jieba, fastjsonschema, XlsxWriter, widgetsnbextension, websockets, websocket-client, webcolors, uri-template, tzdata, types-python-dateutil, toolz, tomlkit, tomli, tinycss2, sympy, shellingham, send2trash, semantic-version, ruff, rpds-py, rfc3986-validator, rfc3339-validator, regex, rank-bm25, qtpy, pywinpty, python-multipart, python-json-logger, python-dotenv, pypdfium2, pycparser, prometheus-client, pandocfilters, overrides, orjson, multidict, mistune, mdurl, markupsafe, jupyterlab-widgets, jupyterlab-pygments, jsonpointer, json5, importlib-resources, httptools, html2text, fsspec, frozenlist, fqdn, filelock, ffmpy, eval-type-backport, dnspython, distro, defusedxml, click, bleach, babel, attrs, async-timeout, async-lru, aiohappyeyeballs, aiofiles, yarl, watchfiles, uvicorn, tiktoken, terminado, starlette, referencing, python-pptx, pandas, markdown-it-py, jsonlines, jinja2, huggingface-hub, email_validator, cffi, arrow, aiosignal, seaborn, rich, openai, jupyter-server-terminals, jsonschema-specifications, isoduration, gradio-client, cryptography, argon2-cffi-bindings, aiohttp, typer, pdfminer.six, jsonschema, ipywidgets, dashscope, argon2-cffi, qtconsole, pdfplumber, nbformat, jupyter-console, fastapi-cli, altair, nbclient, jupyter-events, fastapi, nbconvert, gradio, modelscope-studio, jupyter-server, notebook-shim, jupyterlab-server, jupyter-lsp, jupyterlab, notebook, jupyter, qwen-agent\n",
      "Successfully installed XlsxWriter-3.2.0 aiofiles-23.2.1 aiohappyeyeballs-2.3.2 aiohttp-3.10.0 aiosignal-1.3.1 altair-5.3.0 argon2-cffi-23.1.0 argon2-cffi-bindings-21.2.0 arrow-1.3.0 async-lru-2.0.4 async-timeout-4.0.3 attrs-23.2.0 babel-2.15.0 bleach-6.1.0 cffi-1.16.0 click-8.1.7 cryptography-43.0.0 dashscope-1.20.3 defusedxml-0.7.1 distro-1.9.0 dnspython-2.6.1 email_validator-2.2.0 eval-type-backport-0.2.0 fastapi-0.111.1 fastapi-cli-0.0.4 fastjsonschema-2.20.0 ffmpy-0.4.0 filelock-3.15.4 fqdn-1.5.1 frozenlist-1.4.1 fsspec-2024.6.1 gradio-4.21.0 gradio-client-0.12.0 html2text-2024.2.26 httptools-0.6.1 huggingface-hub-0.24.3 importlib-resources-6.4.0 ipywidgets-8.1.3 isoduration-20.11.0 jieba-0.42.1 jinja2-3.1.4 json5-0.9.25 jsonlines-4.0.0 jsonpointer-3.0.0 jsonschema-4.23.0 jsonschema-specifications-2023.12.1 jupyter-1.0.0 jupyter-console-6.6.3 jupyter-events-0.10.0 jupyter-lsp-2.2.5 jupyter-server-2.14.2 jupyter-server-terminals-0.5.3 jupyterlab-4.2.4 jupyterlab-pygments-0.3.0 jupyterlab-server-2.27.3 jupyterlab-widgets-3.0.11 markdown-it-py-3.0.0 markupsafe-2.1.5 mdurl-0.1.2 mistune-3.0.2 modelscope-studio-0.4.0 mpmath-1.3.0 multidict-6.0.5 nbclient-0.10.0 nbconvert-7.16.4 nbformat-5.10.4 notebook-7.2.1 notebook-shim-0.2.4 openai-1.37.1 orjson-3.10.6 overrides-7.7.0 pandas-2.2.2 pandocfilters-1.5.1 pdfminer.six-20231228 pdfplumber-0.11.2 prometheus-client-0.20.0 pycparser-2.22 pydub-0.25.1 pypdfium2-4.30.0 python-dotenv-1.0.1 python-json-logger-2.0.7 python-multipart-0.0.9 python-pptx-0.6.23 pytz-2024.1 pywinpty-2.0.13 qtconsole-5.5.2 qtpy-2.4.1 qwen-agent-0.0.6 rank-bm25-0.2.2 referencing-0.35.1 regex-2024.7.24 rfc3339-validator-0.1.4 rfc3986-validator-0.1.1 rich-13.7.1 rpds-py-0.19.1 ruff-0.5.5 seaborn-0.13.2 semantic-version-2.10.0 send2trash-1.8.3 shellingham-1.5.4 snowballstemmer-2.2.0 starlette-0.37.2 sympy-1.13.1 terminado-0.18.1 tiktoken-0.7.0 tinycss2-1.3.0 tomli-2.0.1 tomlkit-0.12.0 toolz-0.12.1 typer-0.12.3 types-python-dateutil-2.9.0.20240316 tzdata-2024.1 uri-template-1.3.0 uvicorn-0.30.3 watchfiles-0.22.0 webcolors-24.6.0 webencodings-0.5.1 websocket-client-1.8.0 websockets-11.0.3 widgetsnbextension-4.0.11 yarl-1.9.4\n",
      "Note: you may need to restart the kernel to use updated packages.\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "WARNING: typer 0.12.3 does not provide the extra 'all'\n"
     ]
    }
   ],
   "source": [
    "%pip install -U qwen-agent[gui]"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "chatOCR",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.10.14"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
